<?php
namespace app\home\controller;

use think\Controller;
use app\home\utils\TpApi;

class Apitest extends Controller{
    public function index(){
        $file = '/TpApi.json';
        $TpApi = new TpApi();
        $data = $TpApi->GetData($file);

        $this->assign('data',$data);
        return $this->fetch();
    }
}
